crPESetNthTableSessionInfo

The crPESetNthTableSessionInfo function sets the specified session information when opening a Microsoft Access table. Many Microsoft Access database tables require that a session be opened before the table can be used. Use crPESetNthTableSessionInfo to open the session.

Declare Function crPESetNthTableSessionInfo Lib "crwrap32.dll" (ByVal printJob As Integer, ByVal TableN As Integer, ByVal UserID As String, ByVal Password As String, ByVal SessionHandle As Long, ByVal PropagateAcrossTables As Long) As Integer

Parameters

printJob

Specifies the handle of the print job for which you want to change the Microsoft Access session information.

TableN

0 based table number specifying which table the session is being opened for.

UserID

Specifies the user ID# necessary to log on to the system.

Password

Specifies the password needed for logging on to the system.

SessionHandle

The handle to the current Microsoft Access session.

PropagateAcrossTables

TRUE or FALSE value indicating whether the session information should be used for opening all tables being used in the report.

Return Value

TRUE (1) if the call is successful, FALSE (0) if the call fails.

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com